Added logic to get photos and updated authentication demo.