Added full event handler example

with validation