write an event listener for the currencyInputForm