Auto login feature with sharedprefs caching