updated name validation checks