Express middleware for mitigating brute-force attacks