Adds email template validation. Closes #156.