diff --git a/views/login.ejs b/views/login.ejs
index 3b22bb0be07420fee0c64f44dcaa65eb4a3cb7b8..30f7ae841a35e0e4801e619f5cc05c8d636b2692 100644
--- a/views/login.ejs
+++ b/views/login.ejs
@@ -129,32 +129,32 @@
     </svg>
     
 <main class="form-signin w-100 m-auto">
-  <form action="/user/login" method="POST">
-    <% if (message && message.length > 0) { %>
-      <div class="alert alert-danger" role="alert">
-          <%= message %>
-      </div>
-    <% } %>
-  
-    <h1 class="h3 mb-3 fw-normal">Sign in</h1>
+  <% if (message) { %>
+    <div class="alert alert-danger">
+        <%= message %>
+    </div>
+<% } %>
+
+<form action="/user/login" method="POST">
+    <h1 class="h3 mb-3 fw-normal">Please sign in</h1>
 
     <div class="form-floating">
         <label for="floatingInput">Email address</label>
-      <input type="email" class="form-control" id="floatingInput" name="email" placeholder="name@example.com">
+        <input type="email" class="form-control" id="floatingInput" name="email" placeholder="name@example.com">
     </div>
     <div class="form-floating">
         <label for="floatingPassword">Password</label>
-      <input type="password" class="form-control" id="floatingPassword" name="rpassword" placeholder="Password">
+        <input type="password" class="form-control" id="floatingPassword" name="password" placeholder="Password">
     </div>
 
     <div class="form-check text-start my-3">
-      <input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
-      <label class="form-check-label" for="flexCheckDefault">
-        Remember me
-      </label>
+        <input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
+        <label class="form-check-label" for="flexCheckDefault">
+            Remember me
+        </label>
     </div>
     <button class="btn btn-primary w-100 py-2" type="submit">Sign in</button>
-  </form>
+</form>
 </main>
 <script src="/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>