changes some css for validation errors and passing errors to page