debug login process