begin refactor rule.validator()
completed validation by $http with $watch