Validation for weights