Add changes in the controller file
Add changes in edit method, now I can edit when ther user is admin