Form submitting twice and displaying duplicate submissions