logout Function added