connection check for submit form