[Form][Validation] Add `ignore_extra_data` option

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7209
| License       | MIT

Added `ignore_extra_data` option to allow form validation pass, even with extra data.