public void actionPerformed(ActionEvent ae)
		{			
			//gets the password from the user
			password = input.getText();
			//call the strength check message
			strengthCheck();
			//display password strength
			strength.setText("Password Strength: " + check);
			
			//Change the color of the password strength based on strength
			if(check >= 4)
				strength.setForeground(new Color(57,132,57));
			else if(check >= 2)
				strength.setForeground(new Color(240,173,78));
			else if(check >= 0)
				strength.setForeground(new Color(212,63,58));
			
			//change the color of the rules that are failed
			if(ruleCheck[1] == false)
				Rules[1].setForeground(new Color(212,62,58));
			if(ruleCheck[2] == false)
				Rules[2].setForeground(new Color(212,62,58));
			if(ruleCheck[3] == false)
				Rules[3].setForeground(new Color(212,62,58));
			if(ruleCheck[4] == false)
				Rules[4].setForeground(new Color(212,62,58));
			if(ruleCheck[5] == false)
				Rules[5].setForeground(new Color(212,62,58));
		}