Unclear behavior of the Submit Button causing duplicate submissions