Programmatically check whether the passcode is already registered and OAuth Token exist