Validates the given input and returns an error message if validation fails. Returns null if the input is valid.
null
String? validate(String input);