diff --git a/cas_server/templates/cas_server/serviceValidate.xml b/cas_server/templates/cas_server/serviceValidate.xml
index 7e686d6..a2790e4 100644
--- a/cas_server/templates/cas_server/serviceValidate.xml
+++ b/cas_server/templates/cas_server/serviceValidate.xml
@@ -3,20 +3,12 @@
{{username}}
{% for key, value in attributes %} {{value}}
-{% endfor %}
-
-{% for key, value in attributes %}
-
-{% endfor %}
-{% if proxyGrantingTicket %}
- {{proxyGrantingTicket}}
-{% endif %}
-{% if proxies %}
-
- {% for proxy in proxies %}
- {{proxy}}
- {% endfor %}
-
-{% endif %}
+{% endfor %}
+{% for key, value in attributes %}
+{% endfor %}{% if proxyGrantingTicket %}
+ {{proxyGrantingTicket}}{% endif %}
+{% if proxies %} {% for proxy in proxies %}
+ {{proxy}}{% endfor %}
+ {% endif %}