fixed bug with login fragment