fixed username case lookup
Merge pull request #222 from swelham/username-fix

fixed username case lookup