Fixes for errors when logging in with a staff account (non-Polaris).