Cache password. Detect internet connection.