set up link and user model associations