finish saving hook
idcard_type could be null