New template validation