Fixed the form double submitting