mongoose username: ValidatorError: Path `username` is required. code example Example: Error: ValidationError:: Path `` is required. just remove required: true