Also move the registering of validators into the same place as they other and define a little cute function to avoid code-duplication.
Also move the registering of validators into the same place as they other and define a little cute function to avoid code-duplication.