a few tweaks trying to get login redirect to work