Updated errors to be an array