much progress. login working, no logout.
oops, forgot to stage last commit.