ARIA-313 Fix handling the `required` field of inputs