address a security hole issue

[#77161738]
cleaned up BooksController#index

[#78093706]