I’m trying to validate all the inputs from a form using the same function for every input value. The form should submit if the inputs aren’t empty. The function validate