Validation fixes for user editor.

Moved label tag inside loop.
Changed id naming style in groups generating loop.