Move validation logic to books model. This code is related to information stored in the model: fields and their format.