validations: use object instead of array