Added the method addValidationErrorMessage to allow the adding of error messages if a validation method fails.