Added logic to read validate from url as well