validated segment input