The loop will validate all the values and the error message will contain only the last value here. Also what will happen if all the values but the last are not valid ?