added check for if twitteraccesstoken is null for deleting a post