Add a required options in the AbstractForm.attributes and Form.attributes directives. Validation rules for presence of an attribute can be inlined with its declaration.