fix a bug that when there' no connection it shouldnt goto success page