make logout button functional

@Teapane here's the completed logout button functionality.  Check it?