Not allowing completed appointments to be deleted