adds mandatory to fileds to mongoose provider