Minor fixes to login