Validates the value and returns an error string if it fails, or null if it passes.
value
String? validate(String? value);