Use required="" for document-input field.
Cruft removal.