Logout Functionality

Adds logout functionality...