validation problems fix and loop