Changes for post router and findOne function