adds working logout function