Fix login problem