add define/undefine_validation and validations method