Finally got logout to work using AJAX

Instead of doing it the way I was doing with $.ajax I went with just
making an onclick for the link and running a javascript function
got the login system working better

I made it so that when the user presses login on the form the login
inputs will go away.
added a comment for me later