title: Dynamically set value of "confirm password" to equal the first password field
body: <p>I want to run a test by getting rid of the "password confirmation" field on a sign up form and see if it performs better without.</p>
  
  <p>In my A/B testing solution, I set the second password input display property value to none and via jquery:</p>
  
  <pre><code>$('#password').keypress(function() {
      $('#password2').val($(this).val());
  });
  </code></pre>
  
  <p>I tested live but it says that passwords don't match. I do see #password2 being filed with information as I type (when setting display back to block) but it seems that it would enter wrong text in #password2.</p>
  
  <p>So how to repeat password correctly?</p>