It now checks that user and book are valid before updating the db.