Added validation in model to ensure only approved colors allowed.

Corresponding tests were also created.