addet authefication functions