Logout now working

Logging out is now functional