corrected name validation