added error handling for creating new snip, added redirect for successful snip creation