logout function added