added title validation to post