displays validation errors. events could be simplified