Fixed issue with trusted provider checking
Fixed issue with creating identity records