after failed authentication, the error message window is shown. Clicking the OK button, opens the Login window again.
Also when on auto-login, a wrong password was supplied, the login window is opened after clicking OK in the error window
The last used profile is remembered.
Works for me with OpenBSD/Windowmaker/ejabberd
may probably need some more tests with different servers.