using submit event on form instead of click on button (W3C HTML5 compliance)