added the user id to the link creation, with test.