Submit button only disappears when the form is valid