Added validator to the textbook model