fixes bug when edit view is loaded and requires authentication (no cookie), closes #319