modified to verify passcode that is set