use configuration for login details, and give nice error when not set