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)
Merge pull request #6 from Jainil/master

Reset form validity when the data model changes