Separated out edit thread from edit post.

Added validation.