updated app so that posts are directly associated with user