Use preferences to save user id and region