updating profiles endpoint