Created a logout system