cookbook
Inputs use two-way binding while validation state drives error text and ARIA attributes.
This example does not submit to a server; it shows how a server response can map back to field state.