Clean the login way logic