fixing validation for loan repayment API to allow reversals