binding the validation to any DOM element