Fixing processing of login callback