Updated safe delete function

added neccessary checks so users cant delete each others snippets, that
would get abit crazy. Bed time!