PLF-5761 fix the logic of checking input box current value