authentication improvment