Added Key validation for Redis