Add validator factory.