Using Validation Mixin

Get consistent validation states across all your HTML forms the easy way, using CSS classes or browser validation.