Add validation messages to template for testing.