Stop event propagation if validation failed.

If form validation failed, the event propagation should be stopped to prevent the subsequent event handers bound to form's submit event be executed.