Added the ability to specify region when authenticating.