Added form validation and mail scripts.