fix idp/sp reg form parsing metadata

fix issue with populating data form xml in idp/sp reg form