added validation to events