roomname var changed to userinput, joining changed to function name joinroom