added check for blank player name