adding validation to method add stock