Fix auth login bug