Store $$?="-=ENTER PASS=-" in a variable and use an if to determine if there is a value in it. If not, exit.

Oh, and i think you should use /exit instead of /quit there.
Hope i helped! smirk