How can I use form for submissions when no internet connection is present?