validate required class