Add Erlang validate/1 stolen from the current dev/advanced/commit-hooks page and fix final note in pre-commit section