title: validate password length after user leave password field
body: <p>I want to check if the password length is at least 8 characters or not, when the user leaves the password field or press tab key. 
  How can i do this?</p>
  
  <p>My code for password is shown below. </p>
  
  <pre><code>&lt;input type="password" name="password" id="pass1" placeholder="password"/&gt; 
  </code></pre>