added event based validation