use mongodb validation