validation and looped test