Add validators. Closes #124.