Logout function added