fix php notice displayed when logged in & registering as an affiliate