Fixes to the login function for employees.