Fixes issue where login session variable wasn't being set when in development