added user login check
modified and integrated express-ws into our app