Reorganizes validators to avoid duplicating code
Reorganizes validators to avoid duplicating code

Some error messages were duplicated, or even different. This reorganizes the validators to avoid that.

travisc5/metal.js,travisc5/metal.js,mairatma/metal.js