added JavaScript form validation for Survey form.