Added account check before using cache

Bug found, if the account is changed the authenticated cache is still
used.