Changed errors subarray to errors array