Fixed error with local authentication