input: Write a python function to check if two passwords match and hash the password using Django's make_password function.
  assert register({'method': 'POST', 'POST': {'username': 'user1', 'password': 'password123', 'confirm_password': 'password123'}}).status_code == 200
  assert register({'method': 'POST', 'POST': {'username': 'user2', 'password': 'password123', 'confirm_password': 'differentPassword'}}).content == b'Passwords do not match'
  assert register({'method': 'POST', 'POST': {'username': 'user1', 'password': 'password123', 'confirm_password': 'password123'}}).content == b'Username already taken'
output: from django.contrib.auth.hashers import make_password
  from django.http import HttpResponse
  
  # Mock user database
  user_db = []
  
  def register(request):
      if request['method'] == 'POST':
          username = request['POST']['username']
          password = request['POST']['password']
          confirm_password = request['POST']['confirm_password']
          
          if password != confirm_password:
              return HttpResponse(b'Passwords do not match', status=400)
          
          if any(user['username'] == username for user in user_db):
              return HttpResponse(b'Username already taken', status=400)
          
          hashed_password = make_password(password)
          user_db.append({'username': username, 'password': hashed_password})
          return HttpResponse(status=200)