fixed bug with login