Fix the login state