completed feature to associate users with posts