stdlib validation into array variables