Fix a bug where authentication was incorrectly case sensitive.