Added validation on smart snippets form