Adding a conditional logic in the form to send an email