Tried to fix login bug