Added check for duplicate slug. Because unique filename for post not guaranteed now.