private void signUpButtonActionPerformed(java.awt.event.ActionEvent evt) { 
    	String psw, cpsw;
    	String u_name;
    	String fname;
    	String lname;
    	String emailId;
    	psw = new String(password.getPassword());
    	cpsw = new String(confirmPsw.getPassword());
    	u_name = userName.getText();
    	fname = firstName.getText();
    	lname = lastName.getText();
    	emailId = email.getText();
    	if (u_name.isEmpty()|| fname.isEmpty()|| lname.isEmpty() || emailId.isEmpty() || psw.isEmpty() || cpsw.isEmpty())
    	{
    		JOptionPane.showMessageDialog(window,"Enter into all the fields","Empty Fileds",JOptionPane.PLAIN_MESSAGE );
    	}
    	else{
        if( psw.equals(cpsw))
        {
        	//add a row to the table
        	String[] array = new String[5];
        	array[0] = u_name;
        	array[1] = psw;
        	array[2] = u_name;
        	array[3] = fname;
        	array[4] = emailId;
        	//System.out.println(array[0] + "\t" + array[1] + "\t" + array[2] + "\t" + array[3] + "\t" + array[4]);
        	// send data to the controller to add it to the model
       	    audienceTableController.addRow(array);
       	    
       	    this.setVisible(false);
        	
        }
        else{
        	JOptionPane.showMessageDialog(window,"Passwords entered are not matching","Incorrect Passwords",JOptionPane.PLAIN_MESSAGE );
        }
    	}
    }