Fix UsernameNotFoundException example (take 2)

here is the fix properly applied to master
Merge pull request #2127 from jrobeson/patch-2

Fix UsernameNotFoundException example (take 2)