fix login problem