added validate template step