price validation function fixed