added trigger to restrict primary supervisor count to one