let edit mode work for authenticated users only