adding template submit and validations snippets