added title uniqueness validation for posts and categories