Fix documentation error on adding custom validator