export const isUniqueEmail = (value: any, email: any, helper: any) => { if (!value) { return email; } return helper.error('email.unique'); };