fixes to login