valid check added to the xpath dropdown list