Update Authentication.class.php mysqli to PDO

Converted all database queries to prepared statements using PHP Data Objects (PDO) to prevent potential sql injection.