added error handling when confirming reservation