updates and further work on auth and editing