String? isOtp(String val) { final RegExp reg = RegExp(r"^[0-9]{6}$"); return reg.hasMatch(val) ? null : "otp must be a 6 digit number"; }