Add name length validation and associated rspec test.