Added validators for Twig and JSON