errorArray and messages