created logout function

you can now log out using the functions in checkuser.js
logout button changes if the user is registered or a guest