Added userId to shared pref, added XML parser