[WIP] ability to log out
Users can now log out; cleaned up some logic so it's cleaner