Improve color selection algorithm and prevent submit witout name or text