Add client-side validation for edited templates.