Ok, this is a NASTY hack. But it does the trick now. This checks if the user has a odd number of books taken out, wich, in a system where you can only take one book, means you didn't put one book back, putting the reference in ',' if user takes multiple books is a workaround so he can take multiple books, but only at once.