[BZ 1066060] - "Cannot store preferences" message with a Read Only user - The custom date range UI component that uses user's preferences were lazily instantiated -> when user logged out and logged in the same cached instance was returned and it caused the exception. I've added the method that invalidates the cached singleton instance in user session manager login callback so we can still save some resources by doing it lazily, but at the same time if a new user logs in it gets its own preferences.

(cherry picked from commit 5778be1eb9539e7c75f11fb0e3c7efe4ac4c719e)