added error checking to deleteUpdate.php