User authentication

Add ability for users to log in and log out. Resolves #10 
That was honestly just bad code. The username in session was set to the username in the sequence for user and it just happened to work out for my tests that way. I changed it already to stop relying on luck.