Check for valid session credentials.