Added validation mixin with tests