form will not submit if invalid