Fixed some authentication header issues