Bind onsubmit to form instead of submitButton