diff --git a/ssoauth/templates/403.html b/ssoauth/templates/403.html
index 2c38c4e3bb1e59a29cf5f8ef0a16d25c7595c45f..2b5e2dfd59a3386b88a7fe7797bbf579436e4c4c 100644
--- a/ssoauth/templates/403.html
+++ b/ssoauth/templates/403.html
@@ -6,9 +6,13 @@
 </head>
 <body>
 <h1>403 Forbidden</h1>
-<p>
-    You (<code><strong>{{ request.user }}</strong></code>) don't have permissions to access this page.
-</p>
-{% if not request.user.is_anonymous %}<p><a href="{% url "sso-logout" %}">Log Out</a></p>{% endif %}
+{% if request.user.is_authenticated %}
+    <p>
+        You (<code><strong>{{ request.user }}</strong></code>) don't have permissions to access this page.
+    </p>
+    <p>
+        <a href="{% url "sso-logout" %}">Log Out</a>
+    </p>
+{% endif %}
 </body>
 </html>