OnEvent value validation added