adding user login. session closes websocket for some reason. commented out for now