add some validations on book status and on book records