Users can log in and out.

Closes issue #1.