There are a couple of ways to rule out modern contamination.
Ancient DNA has certain characteristic damage that changes the sequence slightly, and you can use that to filter out any DNA that doesn't have that signature. Plus, you can maintain DNA profiles of all people involved in handling to ensure it's not modern contamination from the field workers or lab techs.