logout function is added