fixing validation on loan repayment to allow reversal from API