validate and read in