I found the authType uses different way to read from UI, it should not just add authType here. I add it right after I read them from UI which is about 5 lines later.