fixed bug in login