Logout button and functions added