«هذان» is nominative and «هذين» is accusative/genitive.
Demonstratives — forms, syntax and usage