Disabled the OK button on the item dialog if the form is not valid