Better checking of user/groups and added autofocus to login form.