Added name validation and associated tests for community.