Fixed some auth related issues found while testing the distro.