Added handling of empty fields in ConnectionActivity.