Validates the given input and returns an error message if validation fails. Returns null if the input is valid.
null
@override String? validate(String input) { return input.isEmpty ? message : null; }