This is not perfect, and def not set in stone. But for now, it will return a JSON page, and not crash. I want this to log the user out, clear the cookies, and then direct home with a message saying something went wrong. I also want it to send me an email with the details, but one step at a time for now, that is not 100% necessary, I just need to fix the bugs. I also need to fix the environments.