in reply to Help stop brute force

Do not use the sleep(). It can easily lead to a DOS attack