How can I avoid receiving a double submission.