added authentication to pins