fix bug of login