How to prevent form submission based on the answer of form field?