Working validation for intervals