text: from django.shortcuts import render, redirect
  from .forms import RegisterForm
  from django.contrib.auth import login, logout, authenticate
  # Create your views here.
  
  def home(request):
      return render(request, "login/home.html")
  
  
  def signup(request):
      if request.method == 'POST':
          form = RegisterForm(request.POST)
          if form.is_valid():
              user = form.save()
              login(request, user)
              return redirect('/home')
      else:
          form = RegisterForm()
      
      return render(request, 'registration/signup.html', {'form': form})
      
  def forgot_password(request):
      return render(request, "login/forgot-password.html")