Added Log Out and connectivity functionality
Added Log Out and connectivity functionality