added patient validation after export