fixed identity exist check, pubkey property is set if id creation succeeded