Fix validateContainer to use map value instead of key