added associations to user and posts