Add validation rules for Purchase.quantity