Improve name validation