Adding function is_connected to Account