fix bugs with logins