update with new validate function on hls plugin