bug when logging in