fixes to login stuff
more changes to login stuff