Added size check in add_to_cart