Fixed error in finding available loans.
Fixed borrow status on book page.