revise validation for stock