Add the beforeSubmit hook for form submission
Fix bug of form data packaging for multiple forms