added authentication functionality
updated file