added alerts when party name is already in use and when no parties are found