Registers a field with its validation rule.
The name of the field.
The validation rule for this field.