added err to addUserInfoToPost