functions wacky

can’t figure out why it reprompts with the code instead of canceling if
no is entered