tweaking validate function so it doesn't always output troublesome ids