made alert dialog for adding a marker have a requirement so that player name cannot be null