issue #1 - authentication: functional reg, login, and logout