Converted authentication and form values to PDO