Updates validto when successfully connects [Issue #22]