ADDED: Sockets - Creating web socket when logging in, and closing it when logging out.