Fixing some passcode bugs, removing errant logging statement