added title validation and rspec test