added associations to both Link and User model