Added saving of profile to SharedPreferences