Modified settingsActivity to save data only if input are correct (name and phone number)