changed addUserInfoToPost to add a user object