Make validator for version more specific