Fixed small bug due to case sensitive refactor in re-implemented the switching of IdP's