Fixed problem of the user signing out not changing isConnected value