Added validateErrorHandler