Fixed bug for save player.

Now it  only accepts when the name field contains some string value.