Update login.class.php

NO full table scan