Fixing login problems