Fix length check of pm body; refactor composer length and title length validation