Auth bug fixes