"important to" vs. "important for" is a perennial question. Both are correct, but there is a subtle difference in meaning. If you search Google for important to or for, you will find a number of explanations. This sort of thing is typical:
The simple explanation is that "important to" is [used for] something you value, while "important for" is [used for] something you need, or t