now hides the form when wrong date is clicked