form validation of wires, if certain conditions are met, submit button is enabled