public void retryUser() {
        jButton.setEnabled(false);
        JLabel errorFields = new JLabel(
                "That username is already taken. Please retry with a different name.");
        JOptionPane.showMessageDialog(null, errorFields);
        // Removing the old action listeners
        ActionListener[] oldUsers = jButton.getActionListeners();
        jButton.removeActionListener(oldUsers[0]);
        jButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                try {
                    jButton1_actionPerformedRetry(e);
                } catch (IOException e1) {
                    e1.printStackTrace();
                }
            }
        });
        jTextField1.setText("");
        jButton.setEnabled(true);
        this.setVisible(true);
    }