Added contact form validation and email submission logic