Created validation for weight in metric configuration form.

Signed off by: Diego Araújo <diegoamc90@gmail.com>