checking user session before returning books
own page - client side