Add checks for valid player name in name_new.

Add a check that name_new only allows valid player names.  Also, currently, the check done in the UI allows too long names.  Add this, too.