Changed setSecurity to allow empty pins to be set