add api to edit active user