Added error pages and forced log ins