Everything done, expect the status thing.
Made a extra function to edit and called it from edit if active == 2. Else returned sorry no permission. Not working
return added to function call it works.