added if statement for $PASSPHASE