hook_node_validate doesn't work I have a new type of content project.

I allowed an anonymous user to add project content in /node/add/project.

I want to add a test before saving node (like the hook_form_validate of webform)

I use hook_node_validate but it's not working

function projects_node_validate($node, $form)
{ 
  die 'in hook';
}


If this is the right hook, how can I use it?

Thank you
Should work fine as long as your module name is "projects"

Did you clear all the site caches after adding the code. Drupal won't detect and start using that hook until you have