core: reenabled template validation