added authentication feature