Add code for login and logout.

The logout message uses the pop() method where it pop's "logged in"
value from session dictionary. Avoids having to check if the user was logged in
to perform log out. Finally, the user is redirected to show_entries