reconfigured caching the user object on login