New function added = now loggedin user can get a link to invite others to the chatroom