added title functionality to post route