seperate validation of price and quantity