Fixed client auth bug & added more debug info