i have a submit event, where i check the inputs upon clicking the submit button. and then i have a seperate function, that needs to be triggered after the inputs have been c