Fix loginprocess.php

- Fix To Query Correctly
- Reduce Coding line to inceasing more speed