fix(validation): set required-validity before scope.$apply