implement Basket.put validation