add validation for add_book