diff --git a/mymodule/themes/fancytheme/core/loginuserpass.php b/mymodule/themes/fancytheme/core/loginuserpass.php
index 6b02f5e0102c0afcc49e721272c2924e9cd66566..428329de1eb9d4f62d9529393da5d1332237c264 100644
--- a/mymodule/themes/fancytheme/core/loginuserpass.php
+++ b/mymodule/themes/fancytheme/core/loginuserpass.php
@@ -7,7 +7,16 @@ if (strlen($this->data['username']) > 0) {
     $this->data['autofocus'] = 'username';
 }
 $this->includeAtTemplateBase('includes/header.php');
+?>
+    <div>
+        <div class="container">
+            <div class="row">
+                <div class="col-md-12" style="margin-bottom: 40px;"><img class="mx-auto" src="/img/Anmelden.png" width="100%"></div>
+            </div>
+        </div>
+    
 
+<?php
 if ($this->data['errorcode'] !== null) {
 ?>
     <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5">
@@ -40,13 +49,7 @@ if ($this->data['errorcode'] !== null) {
 <?php
 }
 ?>
-    <div>
-        <div class="container">
-            <div class="row">
-                <div class="col-md-12" style="margin-bottom: 40px;"><img class="mx-auto" src="/img/Anmelden.png" width="100%"></div>
-            </div>
-        </div>
-    
+
         <div class="login-clean" style="background-color: rgb(234,234,234);">
             <form method="post">
                 <h2 class="sr-only">Login Form</h2>