title: Block user account after 3 consecutive failed login attempts using spring security
body: <p>How to save the number of consecutive failed login attempts, and how to block a user account after reaching 3 failed consecutive login attempts? </p>
  
  <p>Can i do that using implementing <code>AuthenticationFailureHandler</code>, <code>ApplicationListener</code> and <code>AuthenticationFailureBadCredentialsEvent</code>? If so how?</p>