Multi purpose validation gem.