add validity check for the invalid popNames for 'pop'. #40