add hash and array to params validator