Minor fixes on login.