diff --git a/gracedb/templates/rest_framework/api.html b/gracedb/templates/rest_framework/api.html
index e06f877bcb9ce2cfc304321292743ff1930c35b8..34e844c39ae6ca69ea46a75251951913e07145fa 100644
--- a/gracedb/templates/rest_framework/api.html
+++ b/gracedb/templates/rest_framework/api.html
@@ -5,14 +5,18 @@
 {% block branding %}
 GraceDB — REST API
     {% if config_name %}
-      <span style="color: red;">
-          ({{ config_name }})
-      </span>
+      <div style="color: red; display: inline;">({{ config_name }})</div>
     {% endif %}
 {% endblock %}
 
 {% block userlinks %}
-   {% if user %}<li>Authenticated as: {{ user.first_name }} {{ user.last_name }}</li>{% endif %}
+    <li>
+    {% if user.is_authenticated %}
+    Authenticated as: {{ user.first_name }} {{ user.last_name }}
+    {% else %}
+    <a href="{% url "login" %}"><b>Login</b></a>
+    {% endif %}
+    </li>
 {% endblock %}
 
     {% block breadcrumbs %}