added authentication to ReportResource
deleted redundant code