This video shows how to stop the user login after 3 attempts of wrong password. Also the parameterized pattern is used for more security from SQLInjections.
you can request the video which you want, i ll make it within 3 days of your request.
Try it out and comment below if u face any problem.