Ok, I will try that password hashing thing, see how it goes, meanwhile I am getting the following error: Notice: Undefined property: PDOStatement::$fetchColumn in /home/............/App/Controller/dbConnecterController.php on line 41 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5/sessions) in Unknown on line 0 my current dbConnecterController.php file: http://pastebin.com/XdNAzHaU and line 41 is the while loop