books validation