Setup validating form
The Form component emits a number of component events.
You'll want to provide event handler methods for some of these.
First, the Form emits a "prepare For Submit" event, then a "prepare" event.
These allow the container to ensure that objects are set up and ready to receive information from the form submission.
This happens because of Angular's great data-binding feature.Next, the Form determines if there have been any validation errors.If there have been, then the submission is considered a failure, and a "failure" event is emitted.Angular provides properties on forms that help us validate them. We only want it disabled if our form is input field requires a valid email.