test if username or api key are null