Enable login, logout, and registration

Ugly, but basic functionality for POC is present.