fixes non-object access error when the username does not match a user
Merge pull request #5 from jessepollak/fix-user-check

Fixes non-object access error when the username does not match a user