trying to get local authentication to work