Validate if two inputs match the same value.