diff --git a/roomunlock.html b/roomunlock.html
index 8d53073e4f1defd244fee4f9388d1c6c4e2fab3f..89f2b16968b5599ee258f58a05c29f0cdc2293c2 100644
--- a/roomunlock.html
+++ b/roomunlock.html
@@ -73,7 +73,7 @@
     <div id="hiddenFieldError" class="hiddenField error" aria-hidden="true">
         <p id="errorText">empty</p>
     </div>
-    <input type="text" id="room" placeholder="Raumname" minlength="2" required>
+    <input type="text" id="room" placeholder="Raumname" minlength=2 required>
     <button type="button" onclick="process_form()" id="unlock">Freischalten</button>
     <br>
     <p style="font-weight: bold;">oder...</p>
@@ -99,9 +99,9 @@
         const roomUrl = document.getElementById('roomUrl');
 
         let room = window.location.href.substring(window.location.href.lastIndexOf('/') + 1)
-        if (room !== "raumfreischaltung" && room !== "") {
-            roomField.value = room;
-            unlockButton.click();
+        if (room.length >= 2 && room !== "raumfreischaltung") {
+            roomField.value = room
+            get_room(room)
         }
 
         function get_room(_room) {