text: from flask import Blueprint, render_template, request, redirect, url_for, session
  from MySQLPackage import *
  login = Blueprint(
      "login",
      __name__,
      static_folder='static',
  )
  
  Connection = Connection(
      host="127.0.0.1",
      username="Noah721",
      password="Satchel21",
      databaseName="testdbReal"
  )
  
  def Start():
      Connection.run()
      Database = Connection.getDatabase()
      Cursor = Connection.getCursor()
      return Database, Cursor
  
  @login.route('/', methods=["GET", "POST"])
  def index():
      if request.method == "POST":
          Database, Cursor = Start()
  
          Users = Read(Database=Database, Cursor=Cursor, table="Users")
          for User in Users:
              if 'username' in request.form and 'password' in request.form:
                  if User[1] == request.form['username'] and User[2] == request.form['password']:
                      session['loggedIn'] = "true"
                      session['username'] = request.form['username']
                      session['password'] = request.form['password']
                      return redirect(url_for('index.indexPage'))
          return redirect(url_for('index.indexPage'))
      return render_template('pages/login.html', username=(session['username'] if 'username' in session else ''))
  