Some validator helpers