add validate main