adds User.isConnected and removes unused getSession