add validate script