static String? validateString(String? val) { if (val!.isEmpty) { return 'Field is empty'; } return null; }