add error check for if user has already joined room, need to rewrite front-end logic