Implement brute-force detection mechanism and temporary lock account feature