Implement withErrors($validator) for views

When there are validation errors I prefer to put them directly in the view as opposed to storing them in the session and redirecting the user to the same page (causing an extra get request, session set and fetch and response). This pull request sets implements the same functionality in view as for redirects.