Add title length validation to post model