private int checkPasswordField() {
        int res = 0;
        lblError.setVisible(false);
        if (cbAdministrator.isSelected() && roleStateAdministrator == 0) {
            if (!Validate.tfEmpty(tfPassword) && Validate.notOverSize(tfPassword)) {
                res = 1;
            } else {
                lblError.setText("Fyll i ett lösenord");
                lblError.setVisible(true);
            }
        }
        return res;
    }