fixed bug that prevented logins