Auth fixes/improvements.