addds error messages when there are no groups