Move validateColor() into registrationForm object