Fix Identity verification

* fixes #39
* closes #40