Fixing login problem