Handle authenticate errors