Add more debugging message

Help to identify the problem on authentication type mismatch