error handler for checkout