fixed sqrtIt, now uses new validation function