form submit bug

*changing the function to check if all fields are valid before actually
submitting, even though all are supposed to be valid if the button is
enabled