Added a logout function/page