validated the user inputs for color choosing