Input validation for ISBN.