Add an validator implementation.