Now there's an event to validate the form before submit.