fixed login failed issue.