new template file validation