Converted authentication to PDO