changed the login process