moved logic to update a profile to MembershipHelper.