added a validation to player