This module inserts the user login bar like this:

The problem is that ID selectors are required to be UNIQUE in the entire document, but "user-login-form" is used here BOTH for the div wrapper's id selector AND for the form's id selector.

Comments

ace.frahm’s picture

Here's what it outputs:

<div id="user-login-form"><form action="?q=user&amp;destination=node" accept-charset="UTF-8" method="post" id="user-login-form">
blackarma’s picture

Noticed this also today when was running XHTML Strict 1.0 validation.

Was looking at modules code and noticed that form element id is generated by drupal so to fix this simply do this steps:

1) Locate userloginbar.module file in sites/all/modules/userloginbar then at the line 73

change this:
$output = '<div id="user-login-form">'. $output .'</div>';

to this (you can leave -wrap there or use your own):
$output = '<div id="user-login-form-wrap">'. $output .'</div>';

2) Locate userloginbar.css in same folder (sites/all/modules/userloginbar):

Change all of:
#user-login-form

To this ones:
#user-login-form-wrap

Sorry about my english.
This gives you the valid html code.