Added checkisbn function to check for duplicate