Update login.class.php

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

Update login.class.php
Merge pull request #8 from PTKDev/master

merge