Fixes submit on error

Fixes issue #40. When the validation callback throws an error, `_validateForm` breaks before calling `event.preventDefault()` but the `onSubmit` handler catches and suppresses the error. This makes the form submit for seemingly no reason. This pull request moves the `try...catch` so that an invalid form will not submit when the callback throws an error.