ESP-32S: Checking for bogus WiFi connection attempts

I have an ESP-32S WiFi Module, and have successfully programmed it in the Arduino IDE to create an Access point (AP), with a custom SSID and Password.
I can detect when someone connects to the access point, but what I would like to do is light up an LED when the password used to connect to the AP is incorrect. More specifically, I would like to light up an LED when the incorrect password is different by more than 3 characters.

Essentially trying to identify when someone is unlawfully trying to access my AP.
Can anyone point me in the right direction ?

Thanks in advance.