validate and flash each