fixing validation with multiple values