Distance validation