add case validation