Asking me to sign a Buyer/Broker agreement?

I talked to a realtor today who said that in order to show me a property, I need to sign a contract that he is my Buyer's Agent. He said it's against the law for someone to show a property in NY without the buyer signing such an agreement. Does anyone know anything about this?