added a passcode function