fixed bug of login