Updated the error-output in case of validation errors.