saving secret from the response gotten from the server using sharedPreference