Added logout functionality. Updated login and logout so that the page
will refresh after logging in or logging out.