title: Validate password fields while current password field has value in magento
body: <p>I'm having change password form in magento Account Information page.Here I want to validate password fields(password,confirm password,current password) while current password has value.Otherwise it should not validate.</p>
  
  <p>In magento 1.5.1.0 <a href="http://tetlaw.id.au/view/javascript/really-easy-field-validation" rel="nofollow">really easy field validation</a> is used to validate the forms.</p>
  
  <p>I know <strong>addClassName</strong> add the validate like below</p>
  
  <pre><code>    $('current_password').addClassName('required-entry');
      $('password').addClassName('required-entry');
      $('confirmation').addClassName('required-entry');
  </code></pre>
  
  <p><strong>removeClassName</strong> this one removes validation</p>
  
  <pre><code>$('current_password').removeClassName('required-entry');
  $('password').removeClassName('required-entry');
  $('confirmation').removeClassName('required-entry');
  </code></pre>
  
  <p>But how can i apply only while current_password has value.I'm not familiar with prototype.js functions .Kindly help me </p>