Fix login problems