error popup working