fixing the login process