Added Logout and Profile Functionality