Implemented validation for associative arrays