add length validation to posts