Updates to form validation and email sending