validcolor checking

Plugin now checks if a color is valid.