Refactored logic in check_out method and corrected no method error by setting the book.borrower = user