diff --git a/smash/import_file.py b/smash/import_file.py
index 00de3e19e853cff7b88c624f4e4518074651ac24..f274d8f2187adca24e1339cd9dfe152872e91b3e 100644
--- a/smash/import_file.py
+++ b/smash/import_file.py
@@ -538,6 +538,17 @@ if __name__ == '__main__':
     if not os.path.isfile(file):
         logging.warn('Please, execute the program with a valid file path.')
         sys.exit(1)
+
+    #create worker and super user
+    pass1 = ''
+    pass2 = None
+    while pass1 != pass2:
+        pass1 = getpass.getpass('Please type a password for the Admin user: ')
+        pass2 = getpass.getpass('Please type your password again: ')
+        if pass1 != pass2:
+            print 'Password mismatch, please try again'
+    lcsb_worker = createWorker(pass1)
+
     df = pd.read_excel(file, dtype=object)
     df = df.fillna('').astype(unicode)
     df.columns = [c.upper() for c in df.columns]
@@ -569,13 +580,4 @@ if __name__ == '__main__':
 
     # process each row
     for index, row in df.iterrows():
-        parse_row(index, row, visit_columns, appointmentTypes, voucher_types)
-    #create worker and super user
-    pass1 = ''
-    pass2 = None
-    while pass1 != pass2:
-        pass1 = getpass.getpass('Please type a password for the Admin user: ')
-        pass2 = getpass.getpass('Please type your password again: ')
-        if pass1 != pass2:
-            print 'Password mismatch, please try again'
-    createWorker(pass1)
\ No newline at end of file
+        parse_row(index, row, visit_columns, appointmentTypes, voucher_types, lcsb_worker)
\ No newline at end of file