// If a string was returned, say so.
if ((userName == null) || (!(userName.length() > 0)) || email == null || (!(password.length() > 5)) || password == null || (!(email.length() > 0)) ) {
JOptionPane.showMessageDialog(mainView, "Please fill in all the required information", "Register fail", JOptionPane.ERROR_MESSAGE);
} else{
new RegisterAction(c, new RegisterPacket(userName, password, email));
}
}