Refactored error handling to before_filter and created change_cart private method for adding and removing from cart