PDO

login now uses PDO along with various other functions. not all