fixes for device register (check role for update)