NSUserDefaults updated to record logged in user id.