Update authentication implementation