Add correct condition to valid event type check.
Support application/x-www-form-urlencoded content type.