modified component class to have validator mixin