public void confirmProcess() {
        getCore().getNetwork().makeContact();

        Pattern pWord = Pattern.compile("[a-zA-Z_0-9]*");
        Pattern pEmail = Pattern.compile("^\\S+@\\S+$");
        Matcher mPassword = pWord.matcher(String.valueOf(lPassword.getPassword()));
        Matcher mEmail = pEmail.matcher(lEmail.getText());
        boolean pMatchesPwd = mPassword.matches();
        boolean pMatchesEmail = mEmail.matches();

        if (lPassword.getPassword().length < 5 || lPassword.getPassword().length > 32) {
            errorDialog(_("Minimum password length is 5, maximum is 32 characters."));
            lPassword.requestFocus();
        } else if (!String.valueOf(lPassword.getPassword()).equals(
                String.valueOf(lPassword2.getPassword()))) {
            errorDialog(_("The passwords you entered weren't identical."));
            lPassword.requestFocus();
        } else if (!pMatchesEmail && !lEmail.getText().equals("")) {
            errorDialog(_("Please specify a valid email address or none."));
            lEmail.requestFocus();
        } else if (String.valueOf(loldPassword.getPassword()).equals(String.valueOf(lPassword.getPassword()))) {
            errorDialog(_("Your actual password and your new password are the same!"));
            lEmail.requestFocus();
        } else {
            UpdateDataRequestMessage udrm = new UpdateDataRequestMessage();
            if (lEmail.getText() == null) {
                lEmail.setText("");
                udrm.setEmail(lEmail.getText());
            } else {
                udrm.setEmail(lEmail.getText());
            }
            if (String.valueOf(lPassword.getPassword()) == null) {
                udrm.setPassword("");
            } else {
                udrm.setPassword(Password.encodePassword(String.valueOf(lPassword.getPassword())));
            }
            if (String.valueOf(loldPassword.getPassword()) == null) {
                udrm.setOldPassword("");
            } else {
                udrm.setOldPassword(Password.encodePassword(String.valueOf(loldPassword.getPassword())));
            }
            udrm.setClientId(getCore().getPlayerId());

            getCore().getNetwork().sendMessage(udrm);
            confirm.setEnabled(false);

        }
    }