Fixes to login.