add validator mixin