fix idp/sp reg form parsing metadata