fix user lookup
Merge pull request #13 from LouisaBarrett/refactor

fix user lookup