change all authentication settings from GLOBALS vars to _ENV vars