functionality of edit user complete