Fix grid login to allow underscores in region names