fixing a bug in redis auth