State tax filing

Stumbled on this answer and I have a follow-up. Are there restrictions on who the account owner can be? If I create a Massachusetts 529 account owned by me, and benefitting my child, can my Massachusetts-resident parents-in-law make contributions deductible on their Massachusetts taxes? Or would we have to make an account owned by them?

Thanks!