Minecraft logs in twice.
Once when you start the client, and then verifies it again when connecting to a server.
A "bad login" is when you fail the first step, by either playing "offline mode" or using one of those "OMG I CAN PLAY MINECRAFT WITH FREEACC" clients.