added alerts for testing issue with form submitting on the second try.