Add validation for matching direction