1099-Q Recipient is not the parent

My filing status is married filing jointly. I have a daughter who is in college and is 21. I am claiming her as a dependent on my returns and I want to know if I correctly entered in a 1099-Q that was issued from a distribution we received from her 529 Plan and that lists her as the Recipient as well as the beneficiary. Was I correct to do this?  Also, I am doing her taxes in TT as well and I also entered it on her returns as well. Was this correct to do?