title: demand a password to register on wordpress
body: <p>i got a site on wordpress and i need to demand a password on the register,if the user dont have this password he can't registe,i thought using a js function when the onsubmit event is trigred but that dont seems to be the best way to to that.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var chave='the_key';
  
  function validaChave(){
      var chaveForm=document.getElementById('chave');
      if(chaveForm==chave){
          return true;
      }
      alert('Error message');
      return false;
  }</code></pre>
  </div>
  </div>
  </p>