Added support for client loading from config file and checks that key length is correct