public void actionPerformed(ActionEvent e) {
			
			 if(e.getSource()==register){
               
             //variables to hold info read in from text fields 
             String userName = name.getText();
             String fstName = firstName.getText();
             String lstName = lastName.getText();
             String passWord = pass.getText();
             userN = userName;
		
             //inserts into DB
             //Don't insert if any fields are left blank
             int equal, equal1, equal2, equal3;
             equal = userName.compareTo("");
             equal1 = fstName.compareTo("");
             equal2 = lstName.compareTo("");
             equal3 = passWord.compareTo("");
             if((equal==0)||(equal1==0)||(equal2==0)||(equal3==0))
             {
            	 JOptionPane.showMessageDialog(frame, "You may not leave any field blank for registration.");
        	 	 return;
             }
             else
             {
            	 Insert.insertUser(userName, fstName, lstName, passWord);
             } 
				 frame.setVisible(false);
				 frame.dispose();
				 Profile myProfile = new Profile();
				 myProfile.createLayout(userN, doM); //myProfile.createLayout(id)
			 }
			 else if(e.getSource()==cancel){
				 String dontMatter = "";
				 int dontM = 0;
				 frame.setVisible(false);
				 frame.dispose();
				 HomeScreen myHomeScreen = new HomeScreen();
				 myHomeScreen.createLayout(dontMatter, dontM);
			 }
			 
	}