updates authentication type