rewrite the adduser and joinroom