fixed duplicate function issue, now redirects to shopping cart on error