primitive login now working, redirect fails
fixed redirection problem
printing authentication state