local auth now working correctly