Dispatch pageview on return of form with validation errors

Also removed unneeded passing of $ as a parameter