validate version