fix php notice error displayed when logged in and registering as an affiliate