Fixed login problems