fix the bug of login