[fix] Add correct validations to name property

@blakmatrix this should address the name validation problems, Do we need more test cases?