Bug when account is changed

Added check to determine if the username is still the same as the the one used to authenticate if not remove all cache in the cache directory then re authenticate.