Created validation for weight in metric configuration form.

Signed off by: Diego Araújo <diegoamc90@gmail.com>
Merge pull request #97 from mezuro/weight_validation

Created validation for weight in metric configuration form.