Enable login and logout

Ugly, but basic functionality for POC is present.