public static void LogIn(LoginViewModel lvm)
 {
     if (AuthController.LogIn(lvm))
     {
         HomeForm.LogIn(lvm);
         LogInForm.Close();
         AdForm?.DetermineLoggedIn();
     }
     else
     {
         MessageBox.Show("Could not log you in with these credentials.",
                         "Authentication error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public static void LogInView()
 {
     LogInForm?.Close();
     LogInForm = new LogInForm();
     LogInForm.Show();
 }