From the mailing list (from Mohails):
It's quite good when the login form appears to set the automatic
focus on the username field. Maybe this feature could be included in
XWiki as a standart.
All you need is to paste this script after the login form: