prevent server crash on missing username/password