Adding redirect to error page when connection error