emailValidator function
Implementation
String? emailValidator(String? value, String invalidMessage, bool toastIfInvalid) {
var validatedValue = value == null || value.isEmpty ? invalidMessage : VALID;
if (validatedValue != null && toastIfInvalid) showToast(invalidMessage);
return validatedValue;
}