add authentication to all authorized pages