Correctly globalise the $THEUSER variable before finding a postcode.