add findbyid and checkifjoined functions, also add function for user join event