small fixes to login