}
protected void doLogin() {
logger.info("Logging in...");
if (checkFields()) {
JbsUser user = findUser(txUserName.getText());
if (user == null) {
JbsOptionPane msgBox = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Login.userOrPasswordWrong"), JbsL10N.getString("Generic.error"), JbsOptionPane.ERROR_MESSAGE);
msgBox.addActionListener(new DlgListener());
} else {
if ((checkPassword(user, this.txPassword.getText())) && (this.checkModules(user))) {