Help on inserting capital names in single text box

Help on inserting capital names in single text box

Hi, i have  a problem, i have a single text box where  i insert names, is there anyway i can make the box give error if the name entered does not comply with a list of name i have in a form? or do an if not equals name condition?
 
e.g. i have several names all with capital letters
 
JOHN
JAMES
EMMA
TIM
 
but if the user inserts john or james or James or ja.mes or ema, Ema, Emma, resumming if does not match the name in capital it can´t be inserted.