check user created code for length and illegal colours