fixed validation issue on create encounter