add validation check for player input