update template validation