addExistingAccount(username, server, password, savePasswordCB.isSelected());
if(loginCB.isSelected()) {
ConnectionManager man = ConnectionManager.getInstance();
if(man.isLoggedIn()) {
man.disconnect();
}
man.login(username, server, password, "", Mode.available);
}