added generate mobile key and stores it in shared prefs