Changed append to innerHTML to fix error message overfill