Why do the submit button/end of form disappear?