added validation to price