Fixed a bug that was causing the error message field to be visible even when no errors were present.