A Form field validator: takes the field value, returns an error message or null.
Form
typedef Validator = String? Function(String?);