Added account check before using cache

Bug found, if the account is changed the authenticated cache is still
used.
Merge pull request #8 from brycelarge/master

Added account check before using cache