Moved showing of errors to higher position.