Zod validation issue condition wise
The email validation will be shown by default. If a value is added to the contactNumber, the email will not be required. However, if we remove the value from the contact Number, the email will become required.
Make the email field optional when a value is added to the contact Number field; otherwise, keep it required.