Check login and key are set.