Tweaks to allow login to run in browser for testing.