Fixed checking for existing post