working basic authorization on edits
Add basic authorization features on edit and update