try to test the auth flow
fix issues encountered in testing, mostly syntax errors