add login callback
Merge https://github.com/bogdan-matsiakh/gltests