This should convince you that with ComponentJS you can create
dialogs which can be arbitrary times embedded
(even into the same parent dialog) and where each instance
fully encapsulates its own particular state. Also, the
Separation of Concern architecture principle holds, because
each login dialog cares only about itself and not even knows
that it is instanciated multiple times by the parent panel dialog.