Fix numberOfInstallments validation