replace this validation using arrays or list that can be modified dinamically like the previous case