add validate rule