fix login caching issues