fix for mongoose model validation

first arg passed as obj instead of string