Add required=true to form element