Change error message of the weight validator.
Put validation in a separate file.
Put errors in a separate file.