Update login.class.php

NO full table scan
Merge pull request #7 from TheDarkITA/patch-1

Update login.class.php