finished check the login