Authenticate method seems to raising an exception. Trapping error for debugging