Added date validation and improved the submit event handling.
Merge branch 'js-script'

* js-script:
  Added date validation and improved the submit event handling.