Validating when template is empty