Corrected the login process