fix loggin-in issue.