updating exists method to check all post status except trash to prevent duplicate posts.