Adds the logic to store profile data in NSUserDefaults and use it subsequently