save cryptotype in shared preferences