perform validation when the ngModel variable is updated instead of the viewvalue