When a user logs in, the user ID is stored in a session variable.
When the profile ios created, you should be using this session variable as the users ID.
You should also be using that session variable to filter the recordsets. That session variable is the link to the users unique ID.