invalidate cache on login and clear cache on logout
tweaks