Added length check when adding to wishlist