fix login problem.