fixed deletion validation