Added the authorization for edit and update methods