Adding the definition of accounts for services

Setting up the definition for the connections request
created user cookie and added usage if req.user is undefined