Fixed isInputValid() in calcMaxPurchasePricePanel