Fixed some authentication problems.