[FIX] logout [ADD] check internet connection