User logout

this should be really basic but notice where I put the code if it needs to be moved