Added  the logic to insert a user on MongoDB