diff --git a/plinth/templates/base.html b/plinth/templates/base.html
index ea822e6b9..cd1497ba4 100644
--- a/plinth/templates/base.html
+++ b/plinth/templates/base.html
@@ -95,13 +95,15 @@
+
{% if user.is_authenticated %}
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -117,13 +119,13 @@
Log out
-
+
{% else %}
-
-
-
- Log in
-
+
+
+
+ Log in
+
{% endif %}
{% if user.is_authenticated %}
diff --git a/plinth/templates/login.html b/plinth/templates/login.html
index 00486dca6..740fb50db 100644
--- a/plinth/templates/login.html
+++ b/plinth/templates/login.html
@@ -26,10 +26,11 @@