bug fixes

idp/sp registration advanced mode -  somtimes entityID had been lost during processing request