Edit snippet checks

Added the neccessary checks so users cant edit each others snippets.
That would be silly!