add basic validator