added validation for page url twig extension