Fixed logout hook and removed delete user - as library user can not be deleted