private void comparePasswords(JPasswordField pf1, JPasswordField pf2, JButton btn)
	{
		char[] p1 = pf1.getPassword();
		char[] p2 = pf2.getPassword();
		
		boolean verified = true;
		if (p1.length == 0 || p2.length == 0) verified = false; 
		for (int i = 0; i < p1.length && i < p2.length; i++)
		{
			if (p1.length != p2.length || p1[i] != p2[i]) verified = false;
		}
		
		if (verified) pf2.setBackground(Color.WHITE);
		else pf2.setBackground(Color.PINK);
		
		btn.setEnabled(verified);
	}