Add name validation

Addressed issue #47