Developed debug, auth, callback to initlogin