Snippet de validation