fix login problems