Authentication improvements