Fixes issue where you get logged out when internet is gone