Add some validations.