The ballotid and userid is encrypted using the voters' private key. Only the voter can view the ballot and prove the ballot belongs to their user account.
There are heuristic searches that may need to be defended against with additional anonymizing of data.