Programmatically check whether the passcode is already registered