Fix - when error input,patient information still could be saved