new function test whicch user can login and opreate withe session and mongoose