simple loops validation