An example of how to use the required and pattern attribute for form validation.