added hooks for on authentication success and failure in AuthenticatedRequestHandler