Fixed the logout button in the top toolbar

Gave functionality to the logout button on the top toolbar, allowing it to
successfully log out by using Javascript to create an invisible form that
sends a POST request to the login with the correct data needed to log out.