get correct node_id from credentials

Change-Id: I31a98d1fba488b678671bd297175773b4f227373