Add validation before sending mail