checking validation errors