Fixed Portwise auth bug. Restructured auth config