added authentication to the leads view
merging latest changes