Add logout functionality to the frontend, and also add a button for logging out.