diff --git a/src/postorius/templates/postorius/base.html b/src/postorius/templates/postorius/base.html
index 0888dc4..68503ba 100644
--- a/src/postorius/templates/postorius/base.html
+++ b/src/postorius/templates/postorius/base.html
@@ -44,6 +44,8 @@
+ {% if error %}
+ {% else %}
{% if messages %}
{% for message in messages %}
@@ -51,6 +53,7 @@
{% endfor %}
{% endif %}
+ {% endif %}
{% block main %}{% endblock main %}
diff --git a/src/postorius/templates/postorius/errors/generic.html b/src/postorius/templates/postorius/errors/generic.html
index 3716562..86031b9 100644
--- a/src/postorius/templates/postorius/errors/generic.html
+++ b/src/postorius/templates/postorius/errors/generic.html
@@ -5,5 +5,5 @@
{% block main %}