Update Login.php

before starting PDO migration, I have cleaned codes and refactor the class with an eye on PSR-0/1/2 code conventions