fixing some errors on the identity api.