added custom validation to the gameobject