handle validationerrors