add title validation to post model
create new instance variable