Added qr code generator function
added id to session