- added additional debug logging to help track identity lookup issues
- forgot a "!" before isValid to return error case - whoops