edited bookQueryController to correctly direct to correct page if user requests to view a book and not logged in