If the rollup field derives its data from a text field, the default aggregation formula is ARRAYUNIQUE. Yet, since the result is an array, you need to transform it into a string before it can be employed for login purposes. To achieve this, you should utilize the ARRAYJOIN function. Here's an illustrative aggregation formula for reference.
ARRAYJOIN(ARRAYUNIQUE(values), ", ")