changed token to be generated in the join method