Correct issue with authentication