fix deprecations calls for validation errors