fixes a bug in `getValidationAttribs` re: custom validations