Who set the rules for validating a block in blockchain?
The rules are set by the nodes on the network. The rules are coded into node software which users run. These rules are not necessarily set by the creator of the network as they can be changed if all of the users agree to change the rules by running different node software.