Getting credential from config file