add validate in getBox