Health habits are linked to longevity