Fix misplaced variable

Configuration was saving incorrectly, due to 'color' being in the place
of 'name'.
validColors check toLowerCase()