fix title length bug

Added code to check length of topic title when editing a post.