Fixes #1140 Captcha doesn't show up after too many failed login attempts

Removes one query.
Merge pull request #1182 from Sama34/fix-1140v2

Fixes #1140 Captcha doesn't show up after too many failed login attempts