update user and posts