Fix issues with login.