diff --git a/src/org/opencms/ui/login/CmsLoginForm.java b/src/org/opencms/ui/login/CmsLoginForm.java
index <HASH>..<HASH> 100644
--- a/src/org/opencms/ui/login/CmsLoginForm.java
+++ b/src/org/opencms/ui/login/CmsLoginForm.java
@@ -125,6 +125,14 @@ public class CmsLoginForm extends VerticalLayout {
             }
 
         });
+        addAttachListener(new AttachListener() {
+
+            @SuppressWarnings("synthetic-access")
+            public void attach(AttachEvent event) {
+
+                m_userField.focus();
+            }
+        });
 
     }
Made login form focus on the user name field after page load.