Reset form validity when the data model changes

Validity of the form is not refreshed if the form data model is changed
programmatically (eg. with a reset button). This minor change refreshes the validation on programmatic model change.