changing the login function to test the timeout problem