What do I care what an imam thinks if I don't belong to his mosque?
You’ve just said that marriage is a matter for religion - which is exactly what Sharia law teaches too.
You can’t get married without it.
Now, if you are arguing that marriage is a state matter, then you can drop your dishonest argument.