Update register.php to use PDO & Exceptions