attempt to add login/logout functionality.
it's almost there