When submitting a form with html5 validation on in Chrome, the form fails if the form field with an error is in another tab than the currently visible tab, giving no indication to the user (except errors in the javascript console). This commit adds a click handler to the submit button, adding badges to tabs with form fields containing errors, making it easier for the user to correct their errors to properly submit the form.