Added warning when registering insecure state