How to stop form submission based on time and appointment selection?