adding the validity check of ProductOrder.py
cleaning up ProductOrder.py