diff --git a/web/templates/password.html b/web/templates/password.html
index e13363ef8b52a5a39baf505fbd8922889b703a61..7a6c8aa6cbcae0811afd3c628806d4f1f57fe1a8 100644
--- a/web/templates/password.html
+++ b/web/templates/password.html
@@ -17,12 +17,12 @@
     </div>
 
     {{ if .Invalid }}
-      <div class="dex-error-box">
+      <div id="login-error" class="dex-error-box">
         Invalid username and password.
       </div>
     {{ end }}
 
-    <button tabindex="3" type="submit" class="dex-btn theme-btn--primary">Login</button>
+    <button tabindex="3" id="submit-login" type="submit" class="dex-btn theme-btn--primary">Login</button>
 
   </form>
 </div>