Added title length validation and custom error message with unit test