validating errors