CA cert saved correctly in SharedPreferences.

I/O error at login phase fixed.