private void jButton1_actionPerformedRetry(ActionEvent e)
            throws IOException {
        String username = new String(jTextField1.getText());
        String port = new String(jTextField2.getText());
        String server = new String(jTextField3.getText());

        // If username is empty
        if (username.equals("")) {
            jButton.setEnabled(false);
            JLabel errorFields = new JLabel(
                    "You must enter a username to login.");
            JOptionPane.showMessageDialog(null, errorFields);
            jButton.setEnabled(true);
            this.setVisible(true);
        }
        // Port is empty
        else if (port.equals("")) {
            jButton.setEnabled(false);
            JLabel errorFields = new JLabel(
                    "You must enter a port to login. The default port is 4444.");
            JOptionPane.showMessageDialog(null, errorFields);
            jButton.setEnabled(true);
            this.setVisible(true);
        }
        // Server is empty
        else if (server.equals("")) {
            jButton.setEnabled(false);
            JLabel errorFields = new JLabel(
                    "You must enter a port to login. The default port is 4444.");
            JOptionPane.showMessageDialog(null, errorFields);
            jButton.setEnabled(true);
            this.setVisible(true);
        }
        // Check that the username is a-zA-z0-9
        else if (Pattern.matches("\\w", username)) {
            jButton.setEnabled(false);
            JLabel errorFields = new JLabel(
                    "I'm sorry usernames can only contain letters and numbers.");
            JOptionPane.showMessageDialog(null, errorFields);
            jButton.setEnabled(true);
            this.setVisible(true);
        }
        // Otherwise just request the user
        else {
            clientModel.requestUser(username);
        }
    }