WP-4712 Needed to check $user->uid in login callback.