Fixed issue with incorrect credential redirect